let message = {
    IEVersion: function(){
        if (document.documentMode) return document.documentMode;
    },
    classList: function(){
        if(this.IEVersion() > 8){
            if (!("classList" in document.documentElement)) {
                Object.defineProperty(HTMLElement.prototype, 'classList', {
                    get: function() {
                        var self = this;
                        function update(fn) {
                            return function(value) {
                                var classes = self.className.split(/\s+/g),
                                    index = classes.indexOf(value);
                                fn(classes, index, value);
                                self.className = classes.join(" ");
                            }
                        }
                        return {
                            add: update(function(classes, index, value) {
                                if (!~index) classes.push(value);
                            }),
                            remove: update(function(classes, index) {
                                if (~index) classes.splice(index, 1);
                            }),
                            toggle: update(function(classes, index, value) {
                                if (~index)
                                    classes.splice(index, 1);
                                else
                                    classes.push(value);
                            }),
                            contains: function(value) {
                                return !!~self.className.split(/\s+/g).indexOf(value);
                            },
                            item: function(i) {
                                return self.className.split(/\s+/g)[i] || null;
                            }
                        };
                    }
                });
            }
        }
    },
    commons: function(){
        let paper1 = body.appendChild(paper)
        paper1.addClass(paper)
        setTimeout(function() {
            body.removeChild(paper)
        }, 2000)
    },
    success: function(opt) {
        if((this.IEVersion() && this.IEVersion() > 8) || !this.IEVersion()){
            paper.classList.remove('error')
            paper.classList.add('success')
        }
        paper.innerHTML = opt
        this.commons()
    },
    error: function(opt) {
        if((this.IEVersion() && this.IEVersion() > 8) || !this.IEVersion()){
            paper.classList.remove('success')
            paper.classList.add('error')
        }
        paper.innerHTML = opt
        this.commons()
    }
}
